package com.sanben.user.data.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author cyh
 * @description: 用户表实体类
 * @since 2020-08-11
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "UserDto对象", description = "用户表")
public class UserDto {

    @ApiModelProperty(value = "主键")
    private Integer id;

    @NotBlank(message = "手机号不允许为null")
    @ApiModelProperty(value = "手机号")
    private String mobile;

    @NotBlank(message = "用户头像不允许为null")
    @ApiModelProperty(value = "用户头像")
    private String userPortrait;

    @NotBlank(message = "用户名不允许为null")
    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "真实姓名")
    private String really;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @NotBlank(message = "所在城市不允许为null")
    @ApiModelProperty(value = "所在城市")
    private Integer regionId;

}
